<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>广州宏丰汽配有限公司应用管理系统V1.0</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="css/demo.css" rel="stylesheet" type="text/css" />
<link href="css/index.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery/boot.js" type="text/javascript"></script>
<script src="js/support/index.js" type="text/javascript"></script>
</head>

<body>
<!--Layout-->
<div id="layout1" class="mini-layout" style="width: 100%; height: 100%;">
<div class="header" region="north" height="70" showSplit="false" showHeader="false">
	<h1 style="margin: 0; padding: 15px; cursor: default; font-family: 微软雅黑, 黑体, 宋体;">广州宏丰汽配有限公司应用管理系统V1.0</h1>
	<div style="position: absolute; top: 18px; right: 10px;">
		欢迎您，<span id="userinfo"></span>
		<a class="mini-button mini-button-iconTop" iconCls="icon-edit" href="javascript:showModifyPwd();"  plain="true" >修改密码</a>
		<a class="mini-button mini-button-iconTop" iconCls="icon-close" href="javascript:logout();" plain="true">退出</a>
	</div>
</div>
<div title="south" region="south" showSplit="false" showHeader="false"
	height="30">
<div style="line-height: 28px; text-align: center; cursor: default">Copyright © 广州宏丰汽配有限公司版权所有</div>
</div>
<div title="center" region="center" style="border: 0;" bodyStyle="overflow:hidden;"><!--Splitter-->
	<div class="mini-splitter" style="width: 100%; height: 100%;" borderStyle="border:0;">
	<div size="180" maxSize="250" minSize="100" showCollapseButton="true" style="border: 0;"><!--OutlookTree-->
		<div id="leftTree" class="mini-outlooktree"
			url="menu/left.jsps" onnodeselect="onNodeSelect"
			textField="text" idField="id" parentField="pid">
		</div>
	</div>
	<div showCollapseButton="false" style="border: 0;"><!--Tabs-->
		<div id="mainTabs" class="mini-tabs" activeIndex="0" style="width: 100%; height: 100%;">
			<div title="首页" url="overview.html"></div>
		</div>
	</div>
	</div>
</div>
</div>

<div id="setWindow" class="mini-window" title="修改密码"
	style="width: 350px; height: 165px;" showModal="true"
	showCloseButton="true">

<div id="setForm" style="padding: 15px; padding-top: 10px;">
<table>
	<tr>
		<td style="width: 60px;"><label for="password$text">新密码：</label></td>
		<td><input id="password" name="password"
			onvalidation="onPwdValidation" class="mini-password"
			requiredErrorText="新密码不能为空" required="true" style="width: 150px;" /></td>
	</tr>
	<tr>
		<td style="width: 60px;"><label for="passwordConfirm$text">密码确认：</label></td>
		<td><input id="passwordConfirm" name="passwordConfirm"
			onvalidation="onPwdConfirmValidation" class="mini-password"
			requiredErrorText="密码确认不能为空" required="true" style="width: 150px;" /></td>
	</tr>
	<tr>
		<td></td>
		<td style="padding-top: 5px;"><a onclick="modifyPwd"
			class="mini-button" style="width: 60px;">确定</a> <a
			onclick="onCancelClick" class="mini-button" style="width: 60px;">取消</a>
		</td>
	</tr>
</table>
</div>

</div>

<script type="text/javascript">
   mini.parse();
   var tree = mini.get("leftTree");

   document.getElementById("userinfo").innerHTML = realname + "，" + rolename;

   function logout() {
		$.ajax({
			url: "login/logout.jsps",
	        cache: false,
	        success: function (text) {
				window.location.href = "login.html";
	        }
	    });
   }

   function showModifyPwd(){
	   var setWindow = mini.get("setWindow");
	   setWindow.show();

       window.onresize = function () {
       
    	   setWindow.show();
       }
   }

</script>

</body>
</html>